<extend name="Base/common"/>
<block name="style">

    <link type="text/css" rel="stylesheet" href="__CSS__/home.css"/>
    <link type="text/css" rel="stylesheet" href="__Question__/css/question.css"/>
</block>
<block name="body">

    <div class="col-md-12">
        <!--轮播图片-->
        {:hook('Advs', 'home_index_index')}
        <!--/轮播图片-->
    </div>

    <div class="col-md-9">
        <div class="bgwhite" style="min-height: 700px;">
            <div class="help_h">
                <h2 class="pull-left" style="width: 120px;">好友动态</h2>
            </div>



            <div class="question_list" style="padding-right: 5px;padding-left: 5px;">
                <if condition="!$list">
                    <div class="row">
                        <div class="col-xs-12">
                            <p class="text-muted" style="text-align: center; font-size: 3em;">
                                <br/><br/>
                                没有符合的数据～
                                <br/><br/><br/>
                            </p>
                        </div>
                    </div>
                </if>
                <volist name="list" id="vo">
                  <php>if($vo['flag'] == 'help'){</php>
                    <include file="_help"/>
                  <php>}elseif($vo['flag'] == 'question'||$vo['flag'] == 'answer'){</php>
                    {:W('Question/QuestionHome/question',array('data_id'=>$vo['id'],'data_type'=>$vo['flag']))}
                  <php>}elseif($vo['flag'] == 'attend'){</php>
                    <include file="_helpattend"/>
                  <php>}</php>
                </volist>
            </div>
            <div class="clearfix text-center">
                {:getPagination($totalCount,50)}
            </div>
            </div>
    </div>

    <div class="col-md-3">
        <div class="bgwhite" style="padding-bottom: 20px;">
            {:W('SinaFriend/lists')}
        </div>
        <include file="Public/link"/>
    </div>
</block>
<block name="script">
    <script>
        initAnswerNum="{:C('QUESTION_WORDS_COUNT')}"?"{:C('QUESTION_WORDS_COUNT')}":1000;
    </script>
    <script type="text/javascript" src="__Question__/js/question.js"></script>
    <script type="text/javascript" src="__Question__/js/share.js"></script>
</block>